<?php
include_once ($_SERVER['DOCUMENT_ROOT'].'/global.php');
$array = array();
$sql="SELECT id,XingMing,XueHao from user where (XingMing = '{$_GET['keyword']}' or XueHao = '{$_GET['keyword']}') and Leibie in (1,3) and Status = 1 ";
$query = $mysqli->query($sql);
while ($a = $query->fetch_assoc()) {
  $array[] = $a;
}
echo json_encode($array);
exit;
?>
